package com.timoon.testng;

import java.text.DecimalFormat;

import org.testng.annotations.Test;

/**
 *<p></p>
 *<p></p>
 *<p>Copyright:Copyright(c)2013.4.1</p>
 *<p>Company:timoon</p>
 *@author 付乐天
 *@version 1.0 */
public class FormatTest {

	@Test
	public void format(){
		Float data=Float.valueOf("12346456456");
		DecimalFormat format=new DecimalFormat();
		format.applyPattern("0.00");
		System.out.println(format.format(data));
	}
}
